﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="NewTopic.aspx.cs" Inherits="LizzabethBrownRealEstate.Views.Users.NewTopic" %>
<%@ Import Namespace="LizzabethBrownRealEstate.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<form id="frmRegister" method="post" action="<%= Url.Action("AddTopic", "Users") %>" >
    <div class="contentDiv" style="margin-left:20%">
        <% LBRDataContext dc = new LBRDataContext(); %>
        <fieldset id="fldRegister" style="width:450px;">
            <legend>New Topic</legend>
            <table>
                <tr class="addPropertyRow">
                    <td class="addPropertyLabel"><label class="label" for="txtUserName">Category:&nbsp;</label></td>
                    <td class="addPropertyField"><%= Html.DropDownList("Select a category...", "CategoryId", new SelectList(dc.Categories, "CategoryId", "Name")) %></td>
                </tr>
                <tr class="addPropertyRow">
                    <td class="addPropertyLabel"><label class="label" for="txtUserName">Title:&nbsp;</label></td>
                    <td class="addPropertyField"><%= Html.TextBox("Title", "", new { style="width: 300px;" }) %></td>
                </tr>
                <tr class="addPropertyRow">
                    <td class="addPropertyLabel" style="vertical-align: top"><label class="label" for="txtFirst">Message:&nbsp;</label></td>
                    <td class="addPropertyField"><%= Html.TextArea("MessageText", "", new { style = "width: 350px; height: 200px" })%></td>
                </tr>
            </table> 
        </fieldset>
        <%= Html.Hidden("CreateDate", System.DateTime.Now) %>
        
        <div style="margin-top:15px; margin-bottom:15px">
            <input type="submit" id="btnSubmit" name="btnSubmit" value="Submit" />
            <button onclick= "window.history.back(); return false;">Done</button>
        </div>
    </div>
</form>
</asp:Content>
